package org.jeecg.modules.app.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.app.entity.Food;
import org.jeecg.modules.app.entity.FoodCategory;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;


/**
 * @author 李圳川
 * @version 1.0
 * @date 2022/6/12 16:18
 * @content
 */
@Repository
public interface FoodMapper extends BaseMapper<Food> {

    /**
     * 菜品查询
     * @param createBy
     * @return
     */
    ArrayList<FoodCategory> findAllFoodByCreateBy(String createBy);

    /**
     * 更新月售信息
     */
    void upDateSellCountInFood(@Param("id") String id,@Param("num") Integer num);
}
